#!/bin/bash
#

#1
while true;
do
	read -p "请输入一串小于100的整数用于计算和: " sum
	
	if [ $sum -lt 100 ];then
	    a=0	
		for i in `seq $sum`;
		do
			let a=$a+$i
		done
		
		echo  "$a"

	else
		
		echo "请输入一串0~100的整数"
	
	fi

	if [ "$sum" -eq 886 ];then
		exit 66
	fi
done
